﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manageAdmin.aspx.cs" Inherits="admin_manageAdmin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>管理管理员</title>
    <link href="images/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td colspan="2">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
                        EmptyDataText="暂无相关数据" Width="100%" OnRowDeleting="GridView1_RowDeleting">
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="编号" />
                            <asp:BoundField DataField="adminname" HeaderText="用户名" />
                            <asp:BoundField DataField="adminpwd" HeaderText="密码" />
                            <asp:CommandField HeaderText="操作" ShowDeleteButton="True" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    添加管理员</td>
            </tr>
            <tr>
                <td>
                    管理员名称</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Width="209px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                        ErrorMessage="管理员名称不能为空"></asp:RequiredFieldValidator></td>
            </tr>
             <tr>
                <td>
                    管理员密码</td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server" Width="209px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                        ErrorMessage="管理员密码不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    确认密码</td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server" Width="209px" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2"
                        ControlToValidate="TextBox3" ErrorMessage="两次输入密码不一致"></asp:CompareValidator></td>
            </tr>
             <tr>
                <td style="height: 24px" align="center" colspan="2">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加" />
                    &nbsp;
                    <input id="Reset1" type="reset" value="重置" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
